<!doctype html>
<html>

	<head>
		<meta charset="UTF-8">
		<title></title>
		<meta name="viewport" content="width=device-width,initial-scale=1,minimum-scale=1,maximum-scale=1,user-scalable=no" />
		<link href="../../css/mui.min.css" rel="stylesheet" />
		<link rel="stylesheet" type="text/css" href="../../css/node.css" />
	</head>

	<body>

		<header class="mui-bar mui-bar-nav">
			<a class="mui-action-back mui-icon mui-icon-left-nav mui-pull-left"></a>
			<h1 class="mui-title">我的相册</h1>
		</header>

		<div id="list" class="mui-content">
			<div id="item">
				<div class="node-frame">
					<div style="height: 100px;">
						<img id="img" class="node-img" src="../img/shuijiao.jpg" height="100%" align="right">
						<div id="theme" class="node-theme">bbbb</div>
					</div>
				</div>
			</div>
		</div>
		<script src="../../js/mui.min.js"></script>
		<script src="../../js/http.js"></script>
		<script src="../../json/data1.js"></script>

		<script type="text/javascript">
			mui.init({
				swipeBack: true //启用右滑关闭功能
			});

			var list = document.getElementById("list");

			var item = document.getElementById("item");
			item.style.display = 'none';

			for(var i = 10; i < 13; i++) {
				var o = data1[i];
				var div = item.cloneNode(true)
				var theme = div.querySelector("#theme");
				var img = div.querySelector("#img");
				theme.textContent = o.title;
				img.src = "../"+o.img[0];
				list.appendChild(div);
				div.style.display = 'inline';
				div.name = o.id;
				div.addEventListener("click", function() {
					mui.openWindow("../details.html", this.name);
				});
			}
		</script>
	</body>

</html>